public class existNumber {
    public static void main(String[] args) {
        int[] original = {1,2,3,4,5,6,7,8,9,10};

        System.out.println(existNumber(original, 11));
    }
    public static boolean existNumber(int[] array, int number){
        for(int i=0;i<array.length;i++){
            if(array[i] == number){
                return true;
            }
        }
        return false;
    }
}
